package HLLib.platform;

import HLCode.HLClass;
import HLCode.HLClassManager;
import HLCode.HLClassManager_H;
import HLCode.HLLibObject;
import HLCode.HLObject;
import HLLib.base.HLString;

public class HL91Player extends HLLibObject{
    public HLClass GetClass(HLClassManager classManager) {
        return classManager.GetLibClass(HLClassManager_H.CLASS_GROUP_TYPE_LIB_PLATFORM, HLClassManager_H.LIB_CLASS_PLATFORM_91Player);
    }

    public boolean GetBoolean(int index) {
        switch (index) {
        case 0: {
            return isGuestLogin;
        }
        case 1: {
            return isGuestRegistered;
        }
        }
        return false;
    }

    public void SetBoolean(int index, boolean value) {
        switch (index) {
        case 0: {
            isGuestLogin = value;
            return;
        }
        case 1: {
            isGuestRegistered = value;
            return;
        }
        }
    }

    public HLObject GetObject(int index) {
        switch (index) {
        case 0: {
            return uin;
        }
        case 1: {
            return nickName;
        }
        case 2: {
            return sessionId;
        }
        }
        return null;
    }

    public void SetObject(int index, HLObject value) {
        switch (index) {
        case 0: {
            uin = (HLString) value;
            return;
        }
        case 1: {
            nickName = (HLString) value;
            return;
        }
        case 2: {
            sessionId = (HLString) value;
            return;
        }
        }
    }

	public HLString uin;
	public HLString nickName;
	public HLString sessionId;
	public boolean isGuestLogin;
	public boolean isGuestRegistered;
	public HL91Player(){
		uin = new HLString("uin0001");
		nickName = new HLString("HanMeimei");
	}
}
